package com.arrcen.medicen.core.match.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *
 */
@Data
@TableName("SCHEDULE_TASK_TABLE")
public class ScheduleTaskTableEntity implements Serializable {

    /**
     * TASK_TABLE_ID
     */
    @ApiModelProperty(value = "TASK_TABLE_ID")
    @TableId(value = "TASK_TABLE_ID",type = IdType.INPUT)
    public Integer taskTableId;

    /**
     * TASK_ID
     */
    @ApiModelProperty(value = "TASK_ID")
    @TableField("TASK_ID")
    public Integer taskId;

    /**
     * 说明
     */
    @ApiModelProperty(value = "tableId")
    @TableField("SYNC_TABLE_ID")
    public Integer syncTableId;

    /**
     * 开始时间
     */
    @ApiModelProperty(value = "开始时间")
    @TableField("DATE_START")
    public LocalDateTime dateStart;

    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间")
    @TableField("DATE_END")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    public LocalDateTime dateEnd;

    /**
     * 中心库表名
     */
    @ApiModelProperty(value = "成功记录数")
    @TableField("NUM_SUCC")
    public Integer numSucc;

    /**
     * 失败记录数
     */
    @ApiModelProperty(value = "失败记录数")
    @TableField("NUM_FAIL")
    public Integer numFail;

    /**
     * 操作日志
     */
    @ApiModelProperty(value = "操作日志")
    @TableField("LOG")
    public String log;
}
